From: Carlos Soriano Date: Mon, 7 Jul 2014 15:26:37 +0000 (+0200) Subject: overview: Avoid repositioning windows while returning to desktop X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2356 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4bb2a364d3718f4d55481a11b18b410907fbd4a2;p=gnome-shell.git overview: Avoid repositioning windows while returning to desktop When returning to the desktop from overview we always show the workspaceDisplay, given that is which have the windows clones to allow animations. The problem becomes when previous that we were at some other page, like Search or AppDisplay. The problem is that when showing the workspaceDisplay the windows are repositioned. That's wanted except when returning from overview, since that causes unwanted animations of the windows. To avoid that just not reposition the windows if leaving the overview. --- diff --git a/js/ui/workspace.js b/js/ui/workspace.js index adad46fad..ec012c04b 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -1258,6 +1258,12 @@ const Workspace = new Lang.Class({ return; } + // We will reposition windows when enter again overview anyway. + // In this way we avoid unwanted animations of windows repositioning while + // animating overview + if (this.leavingOverview) + return; + let initialPositioning = flags & WindowPositionFlags.INITIAL; let animate = flags & WindowPositionFlags.ANIMATE;